They don't have any! We also care more about the other targets regardless.
Closes #821
fn uniq_target_dest<'a>(targets: &[&'a Target]) -> Option<&'a str> {
let mut curr: Option<Option<&str>> = None;
- for t in targets.iter() {
+ for t in targets.iter().filter(|t| !t.get_profile().is_custom_build()) {
let dest = t.get_profile().get_dest();
match curr {
Hello, World!
", compiling = COMPILING, running = RUNNING).as_slice()));
})
+
+test!(release_with_build_script {
+ let p = project("foo")
+ .file("Cargo.toml", r#"
+ [project]
+ name = "foo"
+ version = "0.5.0"
+ authors = []
+ build = "build.rs"
+ "#)
+ .file("src/lib.rs", "")
+ .file("build.rs", r#"
+ fn main() {}
+ "#);
+
+ assert_that(p.cargo_process("build").arg("-v").arg("--release"),
+ execs().with_status(0));
+})